 
package com.xbongbong.paas.domain.dao;

import java.util.List;
import java.util.Map;
import java.lang.Integer;

import com.xbongbong.paas.domain.entity.ext.PaasListGroupEntityExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.xbongbong.paas.domain.entity.PaasListGroupEntity;
import org.springframework.stereotype.Repository;


/**
* @author autoGen
* @time 2018-08-13 10:46:07
*/
@Repository
@Mapper
public interface PaasListGroupDao {

	 
	Integer insert(PaasListGroupEntity paasListGroup);
	Integer update(PaasListGroupEntity paasListGroup);

	void insertBatch(@Param("list") List<PaasListGroupEntity> paasListGroupList);
	
	Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);
	PaasListGroupEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);
	
	
	List<PaasListGroupEntity>  findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);


	/**
	 * 分组排序
	 * @param list
	 * @param corpid
	 */
    Integer sort(@Param("list") List<PaasListGroupEntity> list,@Param("corpid") String corpid);

	List<PaasListGroupEntityExt> findEntityExts(@Param("param") Map<String,Object> params);
	
	Integer deleteByDefaultGroupCode();
	
	List<PaasListGroupEntityExt> groupByUserId(@Param("param") Map<String, Object> params);
}